package com.atguigu.springcloud;

import com.atguigu.myrule.MySelfRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.netflix.ribbon.RibbonClients;

/**
 * 项目访问路径示例：http://localhost/consumer/order/payment/get/1
 * 如果无法通过微服务名找到服务，请注意配置类中的resttempleate是否启用
 * @ClassName OrderMain80
 * @Description 消费者订单80
 * @Author zxl
 * @Date 2020/11/19 15:15
 * @Version 1.0
 */
@SpringBootApplication
@EnableEurekaClient
@RibbonClient( name = "CLOUD-PAYMENT-SERVICE",configuration = MySelfRule.class)
public class OrderMain80 {

    public static void main(String[] args) {
        SpringApplication.run(OrderMain80.class, args);
    }
}
